FROM ghcr.io/cirruslabs/flutter:3.10.2 AS build

WORKDIR /app/

COPY /code /app/

RUN flutter build web -t "lib/main_stage.dart" --release --web-renderer html

FROM alpine:3.16.2

WORKDIR /app/

COPY --from=build /app/build/web /app/
